Skip to content

fix: handle unrecorded language and layout metadata on --update (#161) - #164

Merged
anhnh2002 merged 7 commits into
FSoft-AI4Code:mainfrom
Alejo2304:issue161_language_update_bug
Nov 16, 2026
Merged

anhnh2002 merged 7 commits into
FSoft-AI4Code:mainfrom
Alejo2304:issue161_language_update_bug

Conversation

@Alejo2304

Copy link
Copy Markdown
Contributor

Hi tema, this PR fixes #161, now when running codewiki generate --update --language es the system doesn't assume the language is english if there is metadata missing.

  • Distinguished missing generation_info.language in metadata.json from a recorded language (known=False), so --update no longer assumes legacy/incomplete docs are English and accepts an explicit --language (or falls back to the saved config language when omitted).
  • Persisted generation_info (language and layout) to metadata.json even on partial or interrupted runs once module_tree.json or generated doc files exist on disk.
  • Added fallback detection for hierarchical layouts when generation_info.layout is missing and nested module pages are present.
  • Added regression tests for unrecorded language updates, partial-run metadata persistence, and layout inference.

@anhnh2002
anhnh2002 merged commit d22b4a8 into FSoft-AI4Code:main Nov 16, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

codewiki generate --update --language es doesn't identify the original language the documentation was made.

2 participants